#include "myStdio.h"
#include <stdio.h>


int main()
{
  FILE_* fp = fopen_("./log.txt","a");
  if(fp==NULL)
  {
    return 1;
  }
  const char* msg = "hello wrold\n";
  int cnt=10;
  while(1)
  {
    cnt--;
    fwrite_(msg,strlen(msg),fp);
    sleep(1);
    printf("const %d\n",cnt);
    if(cnt==0)break;
  }
  fclose_(fp);
  return 0;
}
